﻿<!--#INCLUDE FILE="config.asp"-->

<%
'if(Session("SalesAccessLevel") <> 4 ) then
'	Response.Redirect("default.asp")
'end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="../styles.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<!-- DATE PICKER SCRIPT -->
<link type="text/css" href="../css/jquery-ui-1.8.21.custom.css" rel="stylesheet" />
<script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="../js/jquery-ui-1.8.21.custom.min.js"></script>
<script>
	$(function() {
		$( "#arrival1" ).datepicker();
		$( "#departure1" ).datepicker();
		$( "#arrival2" ).datepicker();
		$( "#departure2" ).datepicker();
	});
	</script>
  <!-- END DATE PICKER SCRIPT -->

<script> 
  //$(document).ready(function(){
  //$('.dashboad_wrapper tr:nth-child(odd)').addClass('alternate');
//});
</script>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
$(function() {
    $('#list_table tr:nth-child(2n+1)').addClass('alternate');
});
</script>

  <script language="javascript" type="text/javascript">
function checkValidation()
{
	if(document.getElementById('firstname').value =="")
	{
		alert("Enter First Name");
		document.getElementById('firstname').focus();
		return false;
	}
	if(document.getElementById('lastname').value =="")
	{
		alert("Enter Last Name");
		document.getElementById('lastname').focus();
		return false;
	}
	if(document.getElementById('phonenumber').value =="")
	{
		alert("Enter phone number");
		document.getElementById('phonenumber').focus();
		return false;
	}
	if(document.getElementById('email').value =="")
	{
		alert("Enter Email");
		document.getElementById('email').focus();
		return false;
	}
	if(document.getElementById('username').value =="")
	{
		alert("Enter User Name");
		document.getElementById('username').focus();
		return false;
	}
	
	if(document.getElementById('password').value =="")
	{
		alert("Enter Password");
		document.getElementById('password').focus();
		return false;
	}
	return true;
}
</script>

<title>Regsitro de Agente/Sales Agent Registration :: CostaBaja</title>

</head>

<body>

<div id="main_wrapper">
    	<div class="main_wrapper_margin">
        	
            <div class="admin_top_menu">
            <!--#INCLUDE FILE="sales_people_menu.asp"--> 
           	</div><!-- END admin_top_menu -->
             
			<h1>Regsitro de Agente/Sales Agent Registration</h1>
            <div class="clear"></div>
            
            
            
            <div class="dashboad_wrapper">
              
                   <fieldset>
           	<legend>Información de Agente/Agent Info</legend>
              <form action="sales-add-salesperson-process.asp" method="post" id="addsalesperson">
              
				 <table width="100%" border="0" cellspacing="0" cellpadding="0">
				  <tr>
					<td>
					<label>Nombre/First Name:</label><br />
				<input name="firstname" id="firstname" type="text" />    	
					</td>
					<td>
					   <label>Apellido/Last Name:</label><br />
				<input name="lastname" id="lastname" type="text" />    	
					</td>
				  </tr>
				  
					<tr>
					<td>
				<label>Telefono/Phone:</label><br />
				<input name="phonenumber" id="phonenumber" type="text" /> 
					</td>
					<td>
				<label>Numero Móvil/Cell:</label><br />
				<input name="cell" id="cell" type="text" /> 
					</td>
				  </tr>
				  
				  <tr>
					<td>
					<label>Email:</label><br />
				<input name="email" id="email" type="text" />   </td>
					<td>
				  <label>Email Password:</label><br />
				<input name="emailpassword" id="emailpassword" type="password" />   
					</td>
				  </tr>
				  <tr>
					<td>
						<label>Nombre Usuario/User Name:</label><br />
				<input name="username" id="username" type="text" />   </td>
					<td>
				  <label>Password:</label><br />
				<input name="password" id="password" type="password" />   
					</td>
				  </tr>
				  <tr>
				  <td>
				  <label>Agente de Ventas/Sales Agent:</label><br />
				<input name="salesagent" id="salesagent" type="text" />   
					</td>
				  </tr>
				  <tr>
					<td colspan="2"><input type="submit" value="Guardar/Save" onclick="javascript:return checkValidation();"/></td>
				 
				  </tr>
				</table>
			</form>
</fieldset>

            </div><!-- .dashboad_wrapper -->
                        
    	</div><!-- END .main_wrapper_margin -->
        
	</div><!-- END #main_wrapper -->

         <!-- FOOTER -->
         
         <!--#INCLUDE file="sales_footer.asp"-->
         
         <!-- END FOOTER -->   

</body>
</html>
